#ifndef TCPSERVER_H
#define TCPSERVER_H

#include <QTcpServer>
#include "tcpthread.h"
#include"global.h"

class TcpServer : public QTcpServer
{
    Q_OBJECT
public:
    explicit TcpServer(QObject *parent = 0);
    void incomingConnection(int socketDescriptor);
    void closeServer();
private:
    volatile bool bIsRuning;
signals:
    void sendSfd(int socketDescriptor);
public slots:

};

#endif // TCPSERVER_H
